Macromedia Flex Article

Learning Flex Basics (Part 3) : Working with Containers


Table of Contents

  1. Introduction
  2. Building the Containers
  3. Create the Application Object
  4. Create a Data Array
  5. Add a TabNavigator Container for Global Navigation
  6. Add an HBox and Panel Containers for Main Views
  7. Add a ViewStack, LinkBar, and Panel Containers for Secondary Views
  8. Add a Form Container
  9. Add a Tile Layout Container and Populate It Using a Repeater
  10. Create a Pseudo Bar Chart Using a Repeater and VBoxes
  11. Complete Code Listing for containers.mxml
  12. Where to Go from Here

Add a TabNavigator Container for Global Navigation

The TabNavigator container automatically creates navigation aids for layout containers nested inside it based on their label values.

  1. After the Script block, add a TabNavigator container with margin, height, and width values as follows:

    <mx:TabNavigator id="tabNav" marginLeft="10" marginTop="20" height="500" width="500">
    </mx:TabNavigator>